import random,numpy as np

# 物品单价 单位美元
a = [random.randint(10,20) for i in range(10)]
print(a)

# 传统计算
# 物品单价 单位人民币
b = []
# 汇率
x = 8
for i in a:
    b.append(i * x)
print(b)

# numpy
# 将列表转为元组
c = np.array(a)
print(c)
d = c * x
print(d)